package cn.shit;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.List;

public class TestStream2 {
    public static void main(String[] args) {
        try {
            String txt = new String(Files.readAllBytes(Paths.get("D:\\PythonCode\\fuck\\ok.txt")));
            List<String> wordsList = Arrays.asList(txt.split("\\PL+"));
            System.out.println(wordsList.toString());
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
